<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreatePlatformConfigTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('platform_config', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('component_appid')   ->default('')->comment('第三方平台id');
            $table->string('component_secret')  ->default('')->comment('第三方平台密钥');
            $table->string('token')             ->default('');
            $table->string('aes_key')           ->default('');
            $table->string('remark')            ->default('')->comment('备注');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('platform_config');
    }
}
